package book;

public class BookList {
    Book books[]=new Book[10];
    private int useSize;
    public BookList(){
        this.books[0]=new Book("三国演义","罗贯中",33,"小说");
        this.books[1]=new Book("红楼梦","曹雪芹",35,"小说");
        this.books[2]=new Book("西游记","吴承恩",39,"小说");
        this.books[3]=new Book("水浒传","施耐庵",37,"小说");
        this.useSize=4;
    }


    public int getUseSize() {
        return useSize;
    }

    public void setUseSize(int useSize) {
        this.useSize = useSize;
    }

    public Book getBooks(int pos) {
        return books[pos];
    }

    public void setBooks(int pos,Book book) {
        this.books[pos] = book;
    }
    public Book[] getBooks(){
        return books;
    }
}
